package com.itheima.service;

import com.itheima.pojo.SysDictData;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @author xuchangshuo
 * @date 2020/8/4 10:01
 */
public interface SysDictDataService {

    //根据dict_type_uid查询SysDictData的数量
    int getSysDictDataCount(String dict_type_uid);


    //添加字典数据
    void add(@RequestBody Map<String, Object> map);

    //批量删除字典数据
    void deleteBatch(@RequestBody List<Map<String, Object>> list);

    //编辑数据字典
    void edit(@RequestBody Map<String, Object> map);

    //获取字典数据列表
    List<SysDictData> getList(@RequestBody Map<String, Object> map);

    //根据字典类型获取字典数据
    List<SysDictData> getListByDictType(String dictType);

    // //根据字典类型数组获取字典数据
    List<SysDictData> getListByDictTypeList(String[] dictTypeList);
}
